import Layout from '@/views/layout/Layout'

export default {
  path: '/mes',
  component: Layout,
  children: [
    {
      path: 'dailyPlan',
      component: () => import('@/views/mes/dailyPlan'),
      name: 'dailyPlan',
      meta: { title: '每日产出目标维护', noCache: true, roles: [] },
    },
    {
      path: 'uph',
      component: () => import('@/views/mes/uph'),
      name: 'uph',
      meta: { title: '人均产出目标维护', noCache: true, roles: [] },
    },
    {
      path: 'process',
      component: () => import('@/views/mes/process'),
      name: 'process',
      meta: { title: '工艺管理', noCache: false, roles: [] },
    },
    {
      path: 'processDetail',
      component: () => import('@/views/mes/processDetail'),
      name: 'processDetail',
      meta: { title: '流程定义', noCache: true },
    },
    {
      path: 'moManage',
      component: () => import('@/views/mes/moManage'),
      name: 'moManage',
      meta: { title: '工单管理', noCache: true },
    },
    {
      path: 'moManageInfo',
      component: () => import('@/views/mes/moManageInfo'),
      name: 'moManageInfo',
      meta: { title: '工单详情', noCache: false },
    },
    {
      path: 'moSerialManage',
      component: () => import('@/views/mes/moSerialManage'),
      name: 'moSerialManage',
      meta: { title: '工单序号管理', noCache: true },
    },
    {
      path: 'snInfo',
      component: () => import('@/views/mes/snInfo'),
      name: 'snInfo',
      meta: { title: '产品序号详情', noCache: false },
    },
    {
      path: 'attendance',
      component: () => import('@/views/mes/attendance'),
      name: 'attendance',
      meta: { title: '线体出勤维护', noCache: true, roles: [] },
    },
    {
      path: 'bom',
      component: () => import('@/views/mes/bom'),
      name: 'bom',
      meta: { title: 'BOM', noCache: true, roles: [] },
    },
    {
      path: 'smt',
      component: () => import('@/views/mes/smt'),
      name: 'smt',
      meta: { title: 'SMT料表管理', noCache: true, roles: [] },
    },
    {
      path: 'ppmatch',
      component: () => import('@/views/mes/ppmatch'),
      name: 'ppmatch',
      meta: { title: '工序人员对应', noCache: true, roles: [] },
    },
    {
      path: 'moReport',
      component: () => import('@/views/mes/report/moReport'),
      name: 'moReport',
      meta: { title: '生产工单达成率', noCache: false, roles: [] },
    },
    {
      path: 'wipReport',
      component: () => import('@/views/mes/report/wipReport'),
      name: 'wipReport',
      meta: { title: '在制品分布', noCache: false, roles: [] },
    },
    {
      path: 'wipDetailReport',
      component: () => import('@/views/mes/report/wipDetailReport'),
      name: 'wipDetailReport',
      meta: { title: '在制品明细', noCache: false, roles: [] },
    },
    {
      path: 'wipLogReport',
      component: () => import('@/views/mes/report/wipLogReport'),
      name: 'wipLogReport',
      meta: { title: '生产追溯', noCache: false, roles: [] },
    },
    {
      path: 'barcodeReport',
      component: () => import('@/views/mes/report/barcodeReport'),
      name: 'barcodeReport',
      meta: { title: '条码打印记录', noCache: false, roles: [] },
    },
    {
      path: 'yieldrateReport',
      component: () => import('@/views/mes/report/yieldrateReport'),
      name: 'yieldrateReport',
      meta: { title: '品质分析', noCache: false, roles: [] },
    },
    {
      path: 'repairReport',
      component: () => import('@/views/mes/report/repairReport'),
      name: 'repairReport',
      meta: { title: '维修分析', noCache: false, roles: [] },
    },
    {
      path: 'testReport',
      component: () => import('@/views/mes/report/testReport'),
      name: 'testReport',
      meta: { title: '人员产出分析', noCache: false, roles: [] },
    },
    {
      path: 'wipkpsReport',
      component: () => import('@/views/mes/report/wipkpsReport'),
      name: 'wipkpsReport',
      meta: { title: '产品物料采集', noCache: false, roles: [] },
    },
    {
      path: 'snCartonMapping',
      component: () => import('@/views/mes/report/snCartonMapping'),
      name: 'snCartonMapping',
      meta: { title: '产品装箱明细', noCache: false, roles: [] },
    },
    {
      path: 'mokpsReport',
      component: () => import('@/views/mes/report/mokpsReport'),
      name: 'mokpsReport',
      meta: { title: '工单物料采集', noCache: false, roles: [] },
    },
    {
      path: 'changeWipkpsReport',
      component: () => import('@/views/mes/report/changeWipkpsReport'),
      name: 'changeWipkpsReport',
      meta: { title: '换料记录', noCache: false, roles: [] },
    },
    {
      path: 'dailyPlanOutput',
      component: () => import('@/views/mes/report/dailyPlanOutput'),
      name: 'dailyPlanOutput',
      meta: { title: '计划产出', noCache: false, roles: [] },
    },
  ],
}
